package demo;

import model.University;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.test.context.ContextConfiguration;

import repository.UniversityRepository;

@ContextConfiguration
public class UniversityService {
	@Autowired
	private static UniversityRepository universityRepository;
	
	public Page<University> findAll(Pageable pageable){
		return universityRepository.findAll(pageable);
	}
}
